package com.lgr.store.dao;

import org.apache.ibatis.annotations.Param;

import com.lgr.store.utils.PageObject;
import com.lgr.store.vo.MaterialTypeVo;

import java.util.List;

public interface MaterialTypeDAO {

    //查询
    List<MaterialTypeVo> listAll(@Param("materialType") MaterialTypeVo materialType, @Param("pager") PageObject pager);
    //统计记录数
    int getcount(MaterialTypeVo materialType);
    //新增
    void add(MaterialTypeVo materialType);
    //删除
    void deleteById(Integer materialTypeId);
    //修改
    void update(MaterialTypeVo materialType);
    //根据id返回一条家庭联系信息
    MaterialTypeVo findById(Integer materialTypeId);
}